; pipeline (); $ this-> redis-> zadd ('groupchat _'. $ id, 1, $ user); # Create an ordered set of group members, and add the group Owner # add this group to the user's group ordered collection $ this-> redis-> zadd ('hasgroupchat _'. $ user, 0, $ id); foreach ($ DdUser as $ v) # User members to be added when creating a group {$ this-> redis-> zadd ('groupchat _'. $ id, 2, $ v); $ this-> redis-> zadd ('hasgroupchat _'. $ v, 0, $ id) ;}$ pipe-> exec (); return $ id; # return group ID}/*** @ desc t
, object [, addmembers]), name indicates the name of the object to be added, object indicates the actual object, and addmembers indicates whether the object is a global object, false is a local object. These objects can be used in scripts only after objects are added to this object.
Eval: Evaluate expression. Format: object. eval (expression ).
Executestatement: interpret and execute script statements. Form
group ID to the sorted set of groups that the user participates in.
Data storage structure:
PHP code implementation:
# ManyPullMessage. class. php
Test:
1. Create createGroupChat. php (test the Group Creation function)
Run the code and create groups 568 and 569 (the Group master is jack)
Include '. /ManyPullMessage. class. php '; $ object = new ManyPullMessage ('2017. 168.95.11 '); # create a group $ user = 'jack'; $ arr = array ('jan1', 'jane2'); $ a = $ object-> createGroupChat ($ user, $
display the UI's parent window handle in a script
State
Enum
Sets or returns the state of the control, and if 0, the control executes only the statement but does not forward the event, and for 1 the object that is accepted by the joined control.
Timeout
Long
The time-out value of the execution script for the control,-1 indicates no timeout
Usesafesubset
BOOL
Sets or returns whether the host program is concerned about security. The secu
create an ordered set of group members for this group (the group information ordered collection is temporarily not created), then add the group owner, and then add the group ID to the group organized by the user to participate in the collection.
Data storage structure diagram:
PHP's Code implementation:
#ManyPullMessage. class.php
Test:
1, establish creategroupchat.php (test create Group function)
Execute code and create 568, 569 groups (group master is Jack)
Include './manypullmessage.clas
display the parent window handle of the UI in a script
State
Enum
Sets or returns the state of the control, and if 0, the control executes only the statement but does not forward the event, and 1 is the object forwarding event that is accepted by the joined control.
Timeout
Long
The time-out value of the control's execution script, 1 means no timeout
Usesafesubset
BOOL
Sets or returns whether the host program cares about se
1. Client definition. The basic idea is to submit the table header definition in form and transmit data in json format ExtgridPaneladdMembers ({exportExcel: function (options) {if (! ExtisDefined (options) {options {}}; 1. The basic idea of the client definition is to submit the table header definition in form and transmit data in json format.
Ext. grid. Panel. addMembers ({exportExcel: function (options) {if (! Ext. isDefined (options) {options ={}}
members for this group (the group information ordered collection is temporarily not created), then add the group owner, and then add the group ID to the group organized by the user to participate in the collection.
Data storage structure diagram:
PHP's Code implementation:
#ManyPullMessage. class.php
Test:
1, establish creategroupchat.php (test create Group function)
Execute code and create 568, 569 groups (group master is Jack)
Include './manypullmessage.class.php '; $object =new manypul
Objects. Constructors provide the Featuresthat classes provide in other languages, including static Variablesand methods.PublicThe members of an object is all public. Anyfunction can access, modify, or delete those members, or add newmembers. There is both main ways of putting members in a newobject:In the constructorThis technique was usually used to initialize public instancevariables. The constructor ' s this variable are used to AddMembers to t
button Configuration Attribute},
...
// This method is automatically executed when the class is instantiated.
// Create the Ext. Element Object using the Ext. element. Create method, and then append the object to the current (input field) element.
Updateaddbutton: function (newbutton, oldbutton ){VaR me = This,Innerelement = me. innerelement;
If (newbutton! = Oldbutton ){
If (newbutton ){
This. addbutton = ext. element. Create ({CLS: CLS + '-click' + CLS +'-button-up ',HTML: '+'});
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.